<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html lang="zh-CN">
<head>
<title>打印页</title>
<meta charset="utf-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="static/lib/jquery/1.9.1/jquery-1.9.1.min.js"
	type="text/javascript"></script>
<link href="static/lib/bootstrap/3.0.2/css/bootstrap.min.css"
	type="text/css" rel="stylesheet" />
<link href="static/lib/bootstrap/3.0.2/css/bootstrap-theme.css"
	type="text/css" rel="stylesheet" />
<script src="static/lib/bootstrap/3.0.2/js/bootstrap.min.js"
	type="text/javascript"></script>
<link href="static/css/layout.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div style="background: #FFF; width:100%">
		<!--startprint-->
		<div>
			<h3 class="center">验收单明细</h3>
			<table class="table o-l-table table-bordered" id="table1">
				<tbody>
					<tr>
						<td class="text-left" style="width:20%">验收单号:</td>
						<td style="width: 30%">${receiveNote.billNo}</td>

						<td class="text-left" style="width:20%">单据类型:</td>
						<td style="width: 30%"><ossp:value
								dictType="RECEIVE_MVK_TYPE" key="${receiveNote.billType}"></ossp:value></td>
					</tr>
					<tr>
						<td class="text-left" style="width:20%">订单号:</td>
						<td style="width: 30%">${receiveNote.poNum}</td>

						<td class="text-left" style="width:20%">收货门店:</td>
						<td style="width: 30%">${receiveNote.shopName}</td>
					</tr>
					<tr>
						<td class="text-left" style="width:15%">收货日期:</td>
						<td style="width: 35%"><fmt:formatDate
								value="${receiveNote.receiptDate}" pattern="yyyy-MM-dd" /></td>

						<td class="text-left" style="width:15%">供应商编码:</td>
						<td style="width: 35%">${receiveNote.supplierNo}</td>
					</tr>
					<tr>
						<td class="text-left" style="width:15%">供应商名称:</td>
						<td style="width: 35%">${receiveNote.supplierName}</td>

						<td class="text-left" style="width:15%">收货金额:</td>
						<td style="width: 35%">${receiveNote.amount}</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div>
			<table
				class="table table-striped table-hover o-l-table table-bordered"
				id="table1">
				<thead>
					<tr>
						<th>商品编码</th>
						<th>商品条码</th>
						<th>商品名称</th>
						<th>规格/型号</th>
						<th>包装率</th>
						<th>入库数量</th>
						<th>含税进价</th>
						<th>税率</th>
						<th>进价金额</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="statementReceiveDetail"
						varStatus="i">
					   <tr>
						<td>${statementReceiveDetail.mantr}</td>
						<td>${statementReceiveDetail.barCode}</td>
						<td>${statementReceiveDetail.mannm}</td>
						<td>${statementReceiveDetail.goodsModel}</td>
						<td>${statementReceiveDetail.packageRt}</td>
						<td>${statementReceiveDetail.quantity}</td>
						<td><fmt:formatNumber value="${statementReceiveDetail.price}"
								pattern="##.##" minFractionDigits="2"></fmt:formatNumber></td>
						<td><fmt:formatNumber value="${statementReceiveDetail.tax}"
								pattern="##" minFractionDigits="0"></fmt:formatNumber></td>
						<td><fmt:formatNumber
								value="${statementReceiveDetail.amount}" pattern="##.##"
								minFractionDigits="2"></fmt:formatNumber></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<!--endprint-->
		<div style="width:50%" align="center"">
			<button class="btn btn-default btn_5" onClick="window.print();">
				打印</button>
			<button class="btn btn-default btn_5" onClick="window.close();">
				关闭</button>
		</div>
	</div>
</body>
</html>